<template>
	<view class="formpanel">
		<form @submit="formSubmit">
			<view class="cu-form-group border-b">
				<view class="title pink">姓名</view>
				<view class="text"><input name="Name" placeholder="请输入当事人姓名" :value="Info.RealName"></input></view>
			</view>
			<view class="cu-form-group border-b">
				<view class="title pink">年龄</view>
				<view class="text"><input name="Age" placeholder="请输入当事人年龄" :value="Info.Age"></input></view>
			</view>
			<view class="cu-form-group border-b">
				<view class="title pink">职务</view>
				<view class="text"><input name="Duty" placeholder="请输入职务" :value="Info.Duty"></input></view>
			</view>
			<view class="cu-form-group border-b">
				<view class="title">机会金额</view>
				<view class="text"><input name="TotalMoney" type="digit" placeholder="请输入机会金额" :value="Tools.ZeroToEmpty(Info.TotalMoney)" @input="TotalInput"></input></view>
			</view>
			<view class="cu-form-group border-b">
				<view class="title">结单日期</view>
				<view class="text">
					<picker name="EndDate" mode="date" :value="Tools.toDate(Info.EndDate,'请选择结单日期')" @change="EndDateChange">
						<view class="uni-input">{{Tools.toDate(Info.EndDate,'请选择结单日期')}}</view>
					</picker>
				</view>
			</view>
			
			<view class="cu-form-group border-b">
				<view class="longtitle">备注</view>
				<view class="text">
					<textarea name="Bak" placeholder="请输入备注" :value="Info.Bak" maxlength="-1"></textarea>
				</view>
			</view>
			
			
			<button class="publish" form-type="submit">提交</button>
		</form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Info:{ID:0}
			};
		},
		methods:{
			formSubmit(e){
				var data = e.detail.value;
				data.Act="Save_Chance";
				data.ID=this.Info.ID;
			}
		}
	}
</script>

<style lang="scss">

</style>
